﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace nicotool
{
   public class systool
    {
       /// <summary>
       /// 写文件
       /// </summary>
       /// <param name="str">内容</param>
       /// <param name="path">路径</param>
       public static void fileWrite(string str,string path)
       {
           FileStream fs = new FileStream(path, FileMode.Create);
          StreamWriter swt = new StreamWriter(fs);
          swt.WriteLine(str);
          swt.Close();
          fs.Close();
       }

       public static void Directory_jiany(string name)
       {
           if (!Directory.Exists(name))
           {
               Directory.CreateDirectory(name);
           }
       }
    }
}
